<?php
namespace app\admin\controller;


use app\admin\common\controller\Base;

class Manage extends Base
{
    public function home()
    {
        $info = [
            'PHP版本'           =>   PHP_VERSION,
            '运行环境'          =>   $_SERVER["SERVER_SOFTWARE"],
            '上传附件限制'       =>   ini_get('upload_max_filesize'),
            '执行时间限制'       =>   ini_get('max_execution_time').'秒',
            '服务器时间'         =>   date("Y年n月j日 H:i:s"),
            '服务器域名/IP'      =>   $_SERVER['SERVER_NAME'].' ['.gethostbyname($_SERVER['SERVER_NAME']).']',
            '剩余空间'           =>   round((disk_free_space(".")/(1024*1024)),2).'M',
        ];

        $this->assign('info',$info);
        return $this->fetch('home');
    }
}